<ion-view view-title="商城资料" class="contact" hide-nav-bar="true"
    ng-form="infoPhoneForm">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">商城资料</h1>
    <div class="buttons">
      <button class="button head-button button-clear center-btn"
          ng-disabled="infoPhoneForm.$invalid"
          ng-click="goSave()">
        保存
      </button>
    </div>
  </ion-header-bar>
  <ion-content>

    <div style="position: relative;" class="input-box">
      <label class="item item-input name">
        <span style="padding-right:10px">商城名:</span>
        <input type="text" name="sitename"
               ng-model="user.sitename"
               ng-required="true"
               placeholder="这里是商城名"
                style="margin-right: 15px">
      </label>
      <button ng-hide="!user.sitename" ng-click="clear('1')" class="wf-icon clean"></button>
    </div>
    <div style="position: relative;" class="input-box">
      <label class="item item-input name">
          <span style="padding-right:10px">商城域名:</span>
        <input type="text" name="firsturl"
               ng-model="user.firsturl"
               ng-required="true"
               placeholder="这里是商城域名" style="padding-left:16px">
        <span style="padding-right: 20px">.upd365.com</span>
      </label>
      <button ng-hide="!user.firsturl" ng-click="clear('2')" class="wf-icon clean" style="right:110px"></button>
    </div>

    <div class="bottom-blank"></div>
  </ion-content>
</ion-view>
